import {requestInfo} from '@/api/public.js'
import {http} from '@/api/service.js'
export class mineService{
    //修改密码
    static changePasswordByEid(oldPsw,newPsw){
        const query={
            oldPsw,
            newPsw
        }
        return requestInfo({
            url:'/main/password',
            params:query,
        })
    }

    //问题反馈
    static feedback(){
        const query={
        }
        return requestInfo({
            url:'',
            params:query,
        })
    }

    //获取角色
    static getRole(){
        return http.get('/sys/role',{custom:{auth:true}})
    }

    //新建供应商司机
    static saveSupplierDriver(user) {
        return requestInfo({
            url:'/erp/material/APPSupplierDriver/saveAPPSupplierDriver',
            data:user,
            header:{ 'content-type':"application/json"}
        })
    }

    //查看username是否重复
    static getByUsername(username){
        const query={
            username
        }
        return requestInfo({
            url:'/erp/material/APPSupplierDriver/getByUsername',
            params:query,
        })
    }
}
